package com.cx.mapper;

import com.cx.pojo.ShoppingCar;
import com.cx.pojo.Trolley;
import com.cx.pojo.TrolleyExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface TrolleyMapper {
    int countByExample(TrolleyExample example);

    int deleteByExample(TrolleyExample example);

    int deleteByPrimaryKey(Integer trolleyId);


    int insertSelective(Trolley record);

    List<Trolley> selectByExample(TrolleyExample example);

    Trolley selectByPrimaryKey(Integer trolleyId);

    int updateByExampleSelective(@Param("record") Trolley record, @Param("example") TrolleyExample example);

    int updateByExample(@Param("record") Trolley record, @Param("example") TrolleyExample example);

    int updateByPrimaryKeySelective(Trolley record);

    int updateByPrimaryKey(Trolley record);

    List<ShoppingCar> selectAll(Integer userId);

    int insert(ShoppingCar shoppingCar);

    int delete(Integer userId,Integer gameId);

    int deleteAll(Integer userId);

    int addCar(Integer userId, Integer gameId);
}